using UnityEngine;
using UnityEngine.EventSystems;

public class JoystickRange : MonoBehaviour,IPointerDownHandler,IPointerUpHandler,IDragHandler
{
    public Joystick joystick;

    public void OnPointerDown(PointerEventData eventData)
    {
        joystick.OnRangePointerDown(eventData);
    }

    public void OnPointerUp(PointerEventData eventData)
    {
        joystick.OnRangePointerUp(eventData);
    }

    public void OnDrag(PointerEventData eventData)
    {
        joystick.OnRangeDrag(eventData);
    }
}
